package org.tsinghua.answer.domain.subject;

import javax.persistence.Entity;

import org.tsinghua.answer.domain.entity.BaseEntity;

/**
 * 学科
 * @author ytm
 *
 */
@Entity
public class Subject extends BaseEntity {

	private String name;
	private int ordernum;
	private String parentId;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getOrdernum() {
		return ordernum;
	}
	public void setOrdernum(int ordernum) {
		this.ordernum = ordernum;
	}
	public String getParentId() {
		return parentId;
	}
	public void setParentId(String parentId) {
		this.parentId = parentId;
	}
}
